package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Emp;
import com.itheima.pojo.EmpQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmpMapper {
    //@Select("")
    Page<Emp> pageselt(EmpQueryParam param);

    void deleteemp(List<Integer> ids);

    @Select("select e.id,e.username,e.name from emp e where e.username = #{username} and e.password = #{password}")
    Emp getlogInfoEmp(Emp emp);

    void getnewemp(Emp emp);

    void save(Emp emp);

    Emp getinfoid(Integer id);

    List<Emp> getall();
}
